home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 98 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.4 KB

  1. From: clamage@Eng.Sun.COM (Steve Clamage)
  2. Message-ID: <4e0moi$4dp@engnews1.Eng.Sun.COM>
  3. X-Original-Date: 22 Jan 1996 18:58:26 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 22 Jan 96 22:15:44 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Throwing an exception from within a si
  9. Organization: Sun Microsystems Inc.
  10. References: <4du0gr$8k8@galaxy.ucr.edu>
  11. Reply-To: clamage@Eng.Sun.COM
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMQQMpOEDnX0m9pzZAQGIpAF/dFaqpC32h/IEWdyfps7+gvCL2qKvpxUi
  14.     2M1qnBqk2WTufsn5771QIiTkR7dZ0/91
  15.     =rl1h
  16.  
  17. In article 8k8@galaxy.ucr.edu, thp@cs.ucr.edu (Tom Payne) writes:
  18. >Steve Clamage (clamage@Eng.Sun.COM) wrote:
  19. >: 
  20. >: What we put in the language standard is binding on all implementations. We
  21. >: try to specify things that can be implemented efficiently on any likely
  22. >: system. In addition, we try to specify features so that they have no cost
  23. >: (or nearly no cost) if you don't use them. IMHO, guarantees about what you
  24. >
  25. >Agreed!!
  26. >
  27. >: can do in an asynchronous signal handler don't meet those criteria for
  28. >: inclusion in the C++ standard.
  29. >
  30. >That's a rather broad conclusion, given the discussion so far.
  31.  
  32. I don't agree. If you have control over the entire environment, you can
  33. make more guarantees about behavior. For example, Ada implementations
  34. have extensive requirements on what they must support. If a platform
  35. cannot reasonably meet those requirements, you aren't going to find an
  36. Ada implementation which is both conforming and useful.
  37.  
  38. C++, on the other hand, is intended to be dropped into (nearly) any existing
  39. platform and coexist with other languages on that platform. The language
  40. definition attempts to stay away from areas where common platforms have
  41. widely differing behavior for that reason. Asynchronous signal handling
  42. certainly varies widely among platforms.
  43.  
  44. It's easy to wave your hands and say that the implementation ought to
  45. be relatively easy to do and not overly expensive. But what if the ABI
  46. on a common platform makes that infeasible? If a language feature
  47. limits the number of platforms which allow implementation, it should be
  48. important to a wide range of programmers and programs.
  49.  
  50. ---
  51. Steve Clamage, stephen.clamage@eng.sun.com
  52. ---
  53. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  54.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  55.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  56.